/* @LICENSE(MUSLC_MIT) */

#include <unistd.h>
#include <sys/resource.h>
#include "internal/syscall.h"

int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit)
{
	return syscall(SYS_prlimit64, pid, resource, new_limit, old_limit);
}
